﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../PUB/Default.Master"  CodeBehind="TEST.aspx.cs" Inherits="YTBZ.CSSJS.TEST" %> 
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxTT" %>
<%@ Register Src="../PUB/PagerNavigation.ascx" TagName="PagerNavigation"  TagPrefix="ucPage" %>
<asp:Content ID="Content_FromMaster" ContentPlaceHolderID="MainContent" runat="server"> 
<!-------------------------------------------------------------------------------------------------->
<table cellspacing="3" cellpadding="0" width="100%" align="center" border="0" class="TableStyle">
    <tr><td class="ItemTitle" colspan="99" height="25" id="TD_TITLE" runat="server">模块标题</td></tr>
    <tr><td class="TdTitleR">感应下拉(输12)：</td>
        <td class="TdContentL">
            <asp:UpdatePanel ID="UpdatePanel2" runat="server"><ContentTemplate>
            <asp:TextBox ID="txtQDDL" runat="server" CssClass="input_box"   Width="150px"  MaxLength="32"  />
                <ajaxTT:AutoCompleteExtender ID="txtAuto1" runat="server" ServiceMethod="GetDDLTest"
                    ServicePath="../PUB/ddl.asmx" Enabled="True" TargetControlID="txtQDDL"
                    
                    CompletionSetCount="20"  CompletionInterval="1000"  MinimumPrefixLength="2"> 
                </ajaxTT:AutoCompleteExtender>
            </ContentTemplate></asp:UpdatePanel>  
        </td>
        <td class="TdTitleR">下拉：</td>
        <td class="TdContentL"><asp:DropDownList ID="ddlQ" runat="server" /></td>
        <td class="TdTitleR">日期：</td>
        <td class="TdContentL"><asp:TextBox ID="txtQB" runat="server" onfocus="SelectDate(this,this,false)" ></asp:TextBox></td>
        <td class="TdTitleR">时间：</td>
        <td class="TdContentL"><asp:TextBox ID="txtQE" runat="server" onfocus="SelectDate(this,this,true)" ></asp:TextBox></td>
        <td class="TdTitleR">数字：</td>
        <td class="TdContentL"><asp:TextBox ID="TextBox1" Width="60px" runat="server" onkeyup="ClearNoNumM(this)" /></td>
        <td class="TdTitleR">小数：</td>
        <td class="TdContentL"><asp:TextBox ID="TextBox2" Width="60px" runat="server" onkeyup="ClearNoNum(this)" /></td>
        <td class="TdTitleR">状态：</td>
        <td class="TdContentL"><asp:DropDownList ID="ddlQSTATE" runat="server" /></td>
        <td class="TdContentL" style="width:100%">
            <asp:Button ID="btnCX" runat="server" CommandName="查询" SkinID="btnCXSkin" OnClick="btn_Click" /> 
        </td> 
    </tr>
</table>
<!-------------------------------------------------------------------------------------------------->

<!-------------------------------------------------------------------------------------------------->  
<div ID="tabShow" runat="server"  style="overflow:auto;width:100%;height:550px;"> 
<table cellspacing="0" border="0" style="border-style:none;">
    <tr><td style="white-space:nowrap">
            <asp:Button ID="btnAdd" runat="server" Text=" 新 增 "  CommandName="添加"  OnClick="btn_Click"  />
            <asp:Button ID="btnXXXX" runat="server" Text=" 勾选处理 "  CommandName="其他"  SkinId="btnQDSkin"  OnClick="btn_Click"  />
        </td><td style="width:100%"><ucPage:PagerNavigation ID="pgShow" runat="server" /></td>
    </tr>
</table>     
<asp:GridView ID="dgList" runat="server" style="width:1800px" AutoGenerateColumns="False" DataKeyNames="KEYID"
              OnRowCommand="dgList_RowCommand" OnRowDataBound="dgList_RowDataBound" OnSorting="dgList_Sorting" AllowSorting="true">
    <HeaderStyle CssClass="Gv_HeaderStyle" /><RowStyle CssClass="Gv_RowStyle" /><AlternatingRowStyle CssClass="Gv_AlternateStyle" />
    <Columns>  
        <asp:TemplateField><ItemStyle HorizontalAlign="Center" /><HeaderTemplate>序号</HeaderTemplate>
            <ItemTemplate><label><%# this.dgList.PageIndex * this.dgList.PageSize + this.dgList.Rows.Count + 1%></label></ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField ItemStyle-HorizontalAlign="Center"  > 
            <HeaderTemplate><input type="checkbox" name="chkAll"  onclick="dgListSelectAll(this, 'chkGet');" /></HeaderTemplate>
            <ItemTemplate><asp:CheckBox ID="chkGet" runat="server" Text="" CommandArgument='<%#Eval("KEYID")%>' /></ItemTemplate>
        </asp:TemplateField> 
        <asp:TemplateField HeaderText="操作" ItemStyle-HorizontalAlign="Center" > 
            <ItemTemplate><asp:LinkButton ID="lbtnB" Text="修改" runat="server" CommandArgument='<%#Eval("KEYID")%>' CommandName="修改" /></ItemTemplate>  
        </asp:TemplateField>  
        <asp:BoundField DataField="TTCODE" HeaderText="XX编号" SortExpression="TTCODE" ItemStyle-HorizontalAlign="Center" /> 
        <asp:BoundField DataField="TTNAME" HeaderText="XX名称" SortExpression="TTNAME" ItemStyle-HorizontalAlign="Center" /> 
        <asp:BoundField DataField="TTDATE" HeaderText="日期" SortExpression="TTDATE" DataFormatString="{0:d}" ItemStyle-HorizontalAlign="Center" /> 
        <asp:BoundField DataField="TTINFO" HeaderText="长文本" SortExpression="TTINFO" ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Left" /> 
        <asp:BoundField DataField="TTMORE" HeaderText="其他字段 需要拖动" SortExpression="TTMORE" ItemStyle-Width="1000px" ItemStyle-HorizontalAlign="Left" /> 
      </Columns> 
</asp:GridView> 
</div> 
<!----编辑----------------------------------------------------------------------------------------------> 
<table id="tabEdit" runat="server" class="TableStyle" width="100%"  visible="false">
    <tr><td class="TdTitleR">级联下拉：</td><td class="TdContentL" colspan="3">
            <asp:UpdatePanel ID="panelMan" runat="server"><ContentTemplate>     
                 <asp:DropDownList ID="ddlE" runat="server" AutoPostBack="true"
                    OnSelectedIndexChanged ="ddlE_OnSelectedIndexChanged" />
                <asp:DropDownList ID="ddlEE" runat="server" />
            </ContentTemplate></asp:UpdatePanel>
        </td></tr> 
    
    <tr><td class="TdTitleR">输入内容1：</td><td class="TdContentL"><asp:TextBox ID="txtEINPUT1" MaxLength="32" runat="server"  /></td>
        <td class="TdTitleR">输入内容2：</td><td class="TdContentL"><asp:TextBox ID="txtEINPUT2" MaxLength="32" runat="server"  /></td></tr> 
    <tr><td class="TdTitleR">输入内容1：</td><td class="TdContentL"><asp:TextBox ID="txtEINPUT3" MaxLength="32" runat="server"  /></td>
        <td class="TdTitleR">输入内容2：</td><td class="TdContentL"><asp:TextBox ID="txtEINPUT4" MaxLength="32" runat="server"  /></td></tr> 
    
    <tr style="height:0.1px"><td style="width:15%" /><td style="width:35%" /><td style="width:15%" /><td style="width:35%" /></tr>
    <tr><td colspan="4" align="center">
            <asp:Label ID="lblUpdate" runat="server" CssClass="LabelFont" /><br />
            <asp:Button ID="btnSave" runat="server" Text="保存"  OnClick="btn_Click"  CommandName="保存"  />
            <asp:Button ID="btnClose" runat="server" Text="关闭"  OnClick="btn_Click"  CommandName="关闭"  /> 
        </td>
    </tr> 
</table>   
<!--------------------------------------------------------------------------------------------------> 
</asp:Content>